package com.qijian.maindata.domain.query;

import com.baomidou.mybatisplus.annotation.TableName;
import com.qijian.common.utils.mybatis.WhereType;
import com.qijian.common.utils.mybatis.WhereTypeEnum;
import lombok.Data;
import lombok.ToString;

import java.math.BigDecimal;
import java.util.List;
import java.util.Set;


/**
 * 生产BOM用料预算明细对象 查询条件类
 *
 * @author qijian
 * @date 2022-05-17
 */

@Data
@ToString
@TableName("main_bom_material_pre_detail")
public class BomMaterialPreDetailQuery {

    @WhereType(filed = "id")
    private Long id;
    @WhereType(filed = "id", type = WhereTypeEnum.IN)
    private List<Long> ids;
    @WhereType(filed = "id", type = WhereTypeEnum.NOTIN)
    private Set<Long> idsNot;
    @WhereType(filed = "main_id")
    private Long mainId;
    @WhereType(filed = "item_id")
    private Long itemId;
    @WhereType(filed = "item_code")
    private String itemCode;
    @WhereType(filed = "item_classify")
    private String itemClassify;
    @WhereType(filed = "item_name")
    private String itemName;
    @WhereType(filed = "item_attr")
    private String itemAttr;
    @WhereType(filed = "item_unit")
    private String itemUnit;
    @WhereType(filed = "item_unit_sup")
    private String itemUnitSup;
    @WhereType(filed = "quantity")
    private BigDecimal quantity;
    @WhereType(filed = "quantity_sup")
    private BigDecimal quantitySup;
    @WhereType(filed = "item_prices")
    private BigDecimal itemPrices;

    @WhereType(filed = "project_id", tableName = "main_bom_material_project")
    private Long projectId;

    @WhereType(filed = "project_machine_no", tableName = "main_bom_material_project")
    private String projectMachineNo;

}
